package com.ruoyi.stuclient.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.stuclient.domain.EwcClass;
import com.ruoyi.stuclient.mapper.EwcClassMapper;
import com.ruoyi.stuclient.service.IEwcClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 班级信息Service业务层处理
 * 
 * @author lcj
 * @date 2025-02-27
 */
@Service
public class EwcClassServiceImpl extends ServiceImpl<EwcClassMapper, EwcClass> implements IEwcClassService {

    @Autowired
    private EwcClassMapper ewcClassMapper;

    /**
     * 通过studentId查询班级信息
     *
     * @param studentId 学生id
     * @return 班级详情
     */
    @Override
    public EwcClass getClassByStudentId(String studentId) {
        return ewcClassMapper.getClassByStudentId(studentId);
    }
}
